#include <stdio.h>

int main()
{
    char str[1024];
    int size=sizeof(str);
    printf("%d\n",size);

    printf("--------------------------\n");
    char a[]="1111112";
    snprintf(str,size,"%s",a);

    printf("%s\n",str);
    printf("--------------------------\n");

    return 0;
}

